package app.config;
import java.sql.Connection;

public class Connnection {
	public static Connnection me(){
		return new Connnection();
	}
	
	public Connection getConnection(){
		try {
			return ((ConnectionDao) Class.forName("app.config.SqlServer2000Impl").newInstance()).getConn();
		} catch (InstantiationException e) {
			e.printStackTrace();
			return null;
		} catch (IllegalAccessException e) {
			e.printStackTrace();
			return null;
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
			return null;
		} 
	}
}
